﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Models.Student s = new Models.Student();
            s.StuNo = "123456789012";
            s.StuName = "张三";
            s.Gender = "男";
            s.Birthday = DateTime.Now;
            s.Password = "123124";

            Models.Student s1 = new Models.Student();
            s1.StuNo = "123456789013";
            s1.StuName = "李四";
            s1.Gender = "男";
            s1.Birthday = DateTime.Now;
            s1.Password = "123124";

            List<Models.Student> list = new List<Models.Student>();
            list.Add(s);
            list.Add(s1);

            BLL.StudentBLL bll = new BLL.StudentBLL();
            bll.Add(list);
            MessageBox.Show("添加成功");
        }
    }
}
